package com.will.txj.aj.server.client;

import com.will.txj.aj.server.client.fallback.WYFallbackClientFactory;
import com.will.txj.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: wen-yi;
 * @date: 2021/12/8 14:05;
 * @Description: openfeign 客户端 用于访问wy-server服务
 */
@FeignClient(value = "wy-server", fallbackFactory = WYFallbackClientFactory.class)
public interface WYServerClient {
    @PostMapping("/app")
    R hello();

    @GetMapping("/app/role")
    R role();

    @GetMapping("permission")
    R permission();
}
